<?php
function lilina_admin_add_garbage($args)
{
    if (!xarVarFetch('unique','str:1:',$unique)) return;
    if (!xarVarFetch('id','int:1:',$id)) return;
    if (!xarVarFetch('confirm','str:1:',$confirm,'',XARVAR_NOT_REQUIRED)) return;
    extract($args);

    // Security Check
    if(!xarSecurityCheck('AdminLilina')) return;

    // Check for confirmation.
    if (empty($confirm)) {
        return false;
    }

    // The API function is called
    if (!xarModAPIFunc('lilina',
                       'user',
                       'update_garbage',
                       array('unique'   => $unique,
                             'id'       => $id))) return; 

    xarResponseRedirect(xarModURL('lilina', 'user', 'main'));
    // Return
    return true;
}
?>